package com.lee.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.UUID;

/**
 * @author Lee
 * @createDate 2021/12/24 17:10
 */
@Controller
public class PaymentController {
    @Value("${server.port}")
    private String serverPort;

    @GetMapping(value = "/payment/zk")
    @ResponseBody
    public String paymentzk(){
        return"springcloud with zookeeper: "+serverPort+"\t"+ UUID.randomUUID().toString();
    }

}
